<?php 
require_once '../include.php';
@$id = $_REQUEST['id']?$_REQUEST['id']:null;
$row=getProById($id);  //项目
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>项目案例</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="page">
    <header style="background:#fff">
        <span class="information-color"></span> <span class="information-title">成功案例</span><span class="information-navigation"><a href="index.php">首页</a>><?php echo $row['pName']?></span>
    </header>
	 <div class="brand">
	 <!--幻灯片-->
	  <div class="swiper-container" data-space-between='10'>
		<div class="swiper-wrapper">
		<?php 
			$proImgs=getAllImgByProId($row['pId']);
			foreach($proImgs as $img):
			?>
			<div class="swiper-slide"><img class="show-img" src="../admin/uploads/<?php echo $img['albumPath']?>" alt=""></div>
		<?php endforeach;?>
		</div>
		<div class="swiper-pagination"></div>
	  </div>
	   <span class="information-color"></span> <span class="information-title">项目介绍</span>
	   <div class="list-block">
            <ul>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">项目名称:</div>
                            <div class="item-input">
                                <?php echo $row['pName']?>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">委托单位:</div>
                            <div class="item-input">
                               <?php echo $row['cUnit']?>
                            </div>
                        </div>
                    </div>
                </li>
				<li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">项目类型:</div>
                            <div class="item-input">
                               <?php $cate=getCateById($row['cId']);?>
							   <?php echo $cate['cName']?>
                            </div>
                        </div>
                    </div>
                </li>
				<li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">设计内容:</div>
                            <div class="item-input">
                              <?php echo $row['dDesc']?>
                            </div>
                        </div>
                    </div>
                </li>
				<li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">项目面积:</div>
                            <div class="item-input">
                               <?php echo $row['pArea']?>
                            </div>
                        </div>
                    </div>
                </li>
				<li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">设计时间:</div>
                            <div class="item-input">
                              <?php echo date('Y-m-d', strtotime($row['dTime']));?>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
	  </div>
    <!--sheet-->
    <!--页脚-->
    <div>
        <nav class="bar bar-tab" style="background:#3f4447;">
            <a class="tab-item active" style="color:#fff" href="index.php">
                <span class="icon icon-home"></span>
                <span class="tab-label">首页</span>
            </a>
            <a class="tab-item" style="color:#fff" href="quotation.php">
                <span class="icon icon-card"></span>
                <span class="tab-label">申请报价</span>
            </a>
            <a class="tab-item" style="color:#fff" href="message.php">
                <span class="icon icon-message"></span>
                <span class="tab-label">留言咨询</span>
            </a>
            <a class="tab-item" style="color:#fff" href="tel:4000072972">
                <span class="icon icon-phone"></span>
                <span class="tab-label">一键拨打</span>
            </a>
        </nav>
    </div>
    <span class="bottom_footer">广州市柏澳景观设计有限公司 版权所有</span>

</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
<script>        
  $(function() {
  $(".swiper-container").swiper({});})
  
  function load(){
	  $(".swiper-container").swiper({});
  }
  </script>
</body>
</html>